package com.diandian.backend.dingding.data.param;

import com.diandian.base.boot.starter.exception.DefaultException;
import com.diandian.backend.dingding.data.dto.DingdingDeptTreeDeleteByIdParamDTO;

import java.io.Serializable;

public class DingdingDeptTreeDeleteByIdParam implements Serializable {

	private Long id;

	public void check() {
		if (id == null || "".equals(id)) {
			throw new DefaultException("id不能为空");
		}
	}

	public DingdingDeptTreeDeleteByIdParamDTO toDTO(){
		DingdingDeptTreeDeleteByIdParamDTO result = new DingdingDeptTreeDeleteByIdParamDTO();
		result.setId(this.id);
		return result;
	}

	public Long getId() {
		return id;
	}
	public Long setId(Long id) {
		return this.id = id;
	}

}
